package com.reeygu.cli.pattern;

import com.reeygu.entity.Device;

public class TurnOffCommand implements Command{

    private Device device;

    public TurnOffCommand(Device device) {
        this.device = device;
    }

    @Override
    public void execute() {
        System.out.println("执行开机");
        device.turnOff();
    }
}
